//
//  TTHomeHeaderView.h
//  TaoTuo
//
//  Created by admin on 2019/8/17.
//  Copyright © 2019 admin. All rights reserved.
//

#import <UIKit/UIKit.h>
@class TTHomeModel;
@class TTMarketModel;

#define homeHeaderViewH ((360 + 180) * kScale + 110)
#define cycleViewH (180 * kScale)
#define HomeTableViewRowH 60

NS_ASSUME_NONNULL_BEGIN

@interface TTHomeHeaderView : UIView

@property (nonatomic, copy) void(^clickGoodsBlock)(NSString *title);    // 点击了哪个商品标签
@property (nonatomic, assign) BOOL has; // 是否有优惠券信息


+ (instancetype)headerViewWithBannerArray:(NSArray *)bannerArray;

- (void)setHomeModel:(nullable TTHomeModel *)homeModel marketArray:(nullable NSArray<TTMarketModel *> *)marketArray upDateTime:(NSString *)upDateTime clickMoreButtonBlock:(dispatch_block_t)clickMoreButtonBlock;

- (CGFloat)setGoldArrayWithArray:(NSArray<TTMarketModel *> *)goldArray;

@end

NS_ASSUME_NONNULL_END
